<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>商品分类浏览</title>
<style type="text/css">
* {
	margin: 0;
	padding: 0;
	font-family: "微软雅黑";
	
	color: #000;
}

a {
	text-decoration: none;
}

#content {
	width: 907px;
	margin: 12px auto;
}

#nav,#productph {
	width: 100%;
	height: 36px;
	background-color: #FC3;
	clear:both;
}

ul {
	list-style: none;
}

#nav ul li,#productph ul li {
	display: block;
	float: left;
	width: 116px;
	text-align: center;
	line-height: 36px;
	font-size:13px;
}

#nav a:hover {
	color: #F00;
}

#nav ul li:hover,#productph ul li:hover {
	background-color: #FDFE98;
}

.proList ul li {
	display: block;
	float: left;
}
#second{
font-size:13px;
width: 440px;
float: right;

}

#proclass {
	width: 100%;
	height: 166px;
	margin-top: 9px;
	border-top: 1px;
	border-bottom: 0px;
	border-left: 0;
	border-right: 0;
	border-color: #000;
	border-style: solid;
}

#proclass ul li {
	line-height: 50px;
	border-bottom: 1px #000 solid;
}

#proclass ul li a {
	width: 50px;
	text-align: center;
}

#proclass ul li a:hover {
	background-color: #FDFE98;
}

#productimg {
	width: 100%;
	margin: 10px auto;
	padding: 0;
}

#productimg ul li {
	float: left;
	margin-left: 20px;
	margin-right: 20px;
	display: block;
	text-align:center;
}

.lastImg {
	margin-right: 0px;
	float: right;
}

.detail {
	display: block;
	border: 1px solid #000;
	margin-top: 2px;
}

.addCar {
	text-align: center;
	background: #FC0;
	margin-top: 2px;
	cursor: hand;
}
.fl {
	float: left;
}

.fr {
	float: right;
}

.toplinkul {
	float: left;
	width: 60px;
	text-align: center;
}

.spaceli {
	width: 8px;
	float: left;
	text-align: center;
	color: #ddd;
}
#navtop{
width:907px;

}
#first{
float:left;
}
#foot {
	text-align: center;
	display:inline-block;
}
.STYLE3 {	font-size: 16px;
	height: auto;
	width: auto;
}
.STYLE4 {font-size: 14px}
.STYLE5 {font-size: 14px; height: auto; width: auto; }
.price {	color:#FF6600;
	font-size:14px;
	height: auto;
	width: 907px;
}
</style>
</head>
<body>
	<div id="content">
			<div id="navTop">
			<div id="first"></div>
			<div id="second">
				<ul>
					<li class="toplinkul" style="width: 80px;">您好，${sessionScope.user.userName }</a></li>
					<li class="spaceli">|</li>
					<li class="toplinkul"><a href="login.do?userAction=logout">退出系统</a></li>
					<li class="spaceli">|</li>
					<li class="toplinkul"><a href="userorderslist.do">我的订单</a></li>
					<li class="spaceli">|</li>
					<li class="toplinkul"><a href="shopcartmanager.do">购物车</a></li>
					<li class="spaceli">|</li>
					<li class="toplinkul"><a href="#">客服电话</a></li>
					<li class="spaceli">|</li>
					<li class="toplinkul"><a href="#">加入我们</a></li>
				</ul>
			</div>
		</div>
		<div id="nav">
			<ul>
				<li><a href="homepage.do">首 页</a></li>
				<li><a href="userorderslist.do">我的订单</a></li>
				<li><a href="#">加入我们</a></li>
				<li><a href="#">关于我们</a></li>
			</ul>
		</div>

		<div id="proclass">
			<ul>
				<li>分类： <c:forEach items="${requestScope.topcategorylist }"
						var="topcategory">
						<a href="showgoods.do?categoryId=${topcategory.id}"
							class="proSubClass">${topcategory.categoryName}</a>

					</c:forEach>

				</li>

				<li id="product"><c:forEach
						items="${requestScope.subCategoryList }" var="subCategory">
						<a href="showgoods.do?categoryId=${subCategory.id}"
							class="proSubClass">${subCategory.categoryName}</a>
					</c:forEach></li>
				<li>价格：<a href="#" class="proSubClass">0-10</a> <a href="#"
					class="proSubClass">11-20</a> <a href="#" class="proSubClass">>20</a></li>
			</ul>
		</div>

		<div id="productph">
			<ul>
				<li><a href="showgoods.do">排 行：</a></li>
				<li><a href="showgoods.do?categoryId=15">按销量</a></li>
				<li><a href="showgoods.do?categoryId=13">按价格</a></li>

			</ul>
		</div>

		<div id="productimg">
			<ul>
				<c:forEach items="${requestScope.goodsList }" var="goods">
					<li><a href="goodsinfo.do?id=${goods.id }" >
					<img width="140" height="123"
						src="${goods.goodsPictureUrl }" /></a> <span class="detail">
							<p>${goods.goodsName }</p>
							<p><font color="red">￥${goods.retailPrice }</font></p>
					</span>
						<p class="addCar">
							<a href="addshopcart.do?id=${goods.id }&amount=1">加入购物车</a>
						</p></li>
				</c:forEach>


			</ul>
		</div>
		    <div id="foot">
      <p>&nbsp;</p>
      <hr align="center"  width="907" color="#FF6600" class="price" />
      <p>&nbsp;</p>
      <p><br />
          <span class="STYLE4">公司简介&nbsp; |&nbsp;&nbsp; Investor Relations&nbsp; |&nbsp; 诚征英才&nbsp; |&nbsp; 网站联盟&nbsp; |&nbsp; 广告服务&nbsp; |&nbsp; 文化沙龙招商&nbsp; |&nbsp; 机构销售&nbsp; |&nbsp; 手机文化沙龙&nbsp; |&nbsp; 官方 Blog </span> </p>
      <p class="STYLE4">&nbsp;</p>
      <span class="STYLE4">Copyright © 2014-2015 文化沙龙 版权所有 增值电信业务经营许可证蒙B2-20120030 </span>
      <p class="STYLE5">&nbsp;</p>
      <p class="STYLE3">&nbsp;</p>
    </div>
	</div>

</body>
</html>